<?php
namespace app\admin\controller;

use app\admin\model\SystemMenu;
use think\facade\View;

class Index extends Base
{
    public function index()
    {
        $menu = SystemMenu::getMenuByAuthority($this->authority);
        View::assign([
            'menu' => $menu
        ]);
        return View::fetch();
    }

    public function welcome(){
        return View::fetch();
    }
}
